{extend name="public/layerbase" /}
{block name="css"}
<!--<link rel="stylesheet" href="__STATIC__/admin/assets/css/dropzone.css" />-->
<!--<link rel="stylesheet" href="__STATIC__/admin/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />-->
<!--<style>-->
    <!--#apply-form{width:446px;height:60px;}-->
    <!--.tishi{float:left;width:250px;height:40px;}-->
    <!--.btnbox{float:right;}-->
    <!--.fallback{width: 136px;  height: 40px;  background: #4f99c6;  position:relative;text-align: center;line-height:40px;-->
        <!--float: left;}-->
    <!--.chuanfile{font-size:20px;color:white;}-->
    <!--#excel{width: 50px !important;height:40px; cursor: pointer;  font-size: 30px;  outline: medium none;  filter:alpha(opacity=0);  -moz-opacity:0;  opacity:0;position: absolute;top:0;}-->
    <!--#btnRegister{width:60px;height: 40px;border:0px;font-size:20px;color:white;float:right;background:#ffb752 ;}-->
<!--</style>-->

{/block}
{block name="content"}
    <div class="main-container" id="main-container">
        <div class="main-content">
            <div class="page-content">
                <div class="page-content-area">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="widget-box">
                                <div class="widget-header widget-header-blue widget-header-flat">
                                    <h4 class="widget-title lighter">导入客资</h4>
                                </div>
                                <div class="widget-body">
                                    <div class="widget-main">
                                        <div class="step-content pos-rel" >
                                            <div class="step-pane active" >
                                                <form class="form-horizontal " id="form">
                                                        <div class="form-group">
                                                            <label class="control-label col-sm-2">客资Excel表：</label>
                                                            <div class="col-sm-8">
                                                                <input type="file" name="file" class="file-loading" id="file"/>
                                                            </div>
                                                        </div>

                                                    <hr />
                                                    <div class="clearfix" style="text-align: center">
                                                        <div class="col-md-offset-3 col-md-9">
                                                            <button class="btn btn-info" type="submit" id="submit">
                                                                <i class="ace-icon fa fa-check bigger-110"></i>
                                                                提交
                                                            </button>
                                                            <button class="btn" type="reset">
                                                                <i class="ace-icon fa fa-undo bigger-110"></i>
                                                                重置
                                                            </button>
                                                        </div>
                                                    </div>
                                                </form>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{/block}

{block name="js"}
{include file="base/bootstrap-input"/}
{include file="base/toastr"/}
    <script>
        var define_fileds =  {
            file: {
                validators: {
                    notEmpty: {
                        message: '未上传文件'
                    },
                }
            }
        };
        var ajaxurl = "{:url('daorus')}";
        var uploadUrl = "{:url('api/Upload/uploadfile')}";
    </script>
{/block}